docs(tasks): nullable title on task runs — originating scheduled task's title#268
docs(tasks): nullable title on task runs — originating scheduled task's title#268sweetmantech wants to merge 1 commit into
title on task runs — originating scheduled task's title#268Conversation
…uled task) GET /api/tasks/runs list mode gains a per-run title resolved from the originating scheduled_actions row (via its trigger_schedule_id). Null when the run cannot be mapped to a scheduled task; not present in retrieve mode. Contract for recoupable/chat#1850 (video-parity: named homepage run rows). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe OpenAPI specification for ChangesTaskRunResponse Schema Update
Estimated code review effort: 1 (Trivial) | ~2 minutes Estimated code review effort(see above) 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Amends the
TaskRunResponseschema inapi-reference/openapi/releases.jsonwith a new nullabletitlefield: the originating scheduled task's title, when resolvable. Purely additive (+5 lines, JSON parse re-validated, all pre-existing bytes untouched).Why
GET /api/tasks/runsproxies Trigger.dev runs, which only carrytaskIdentifier— and every scheduled prompt sharescustomer-prompt-task, so the chat homepage renders five identical "Scheduled Task" rows (recoupable/chat#1850, video-parity item 1). The api resolves each list-mode run's title by joining Trigger'sfilter[schedule]runs against the account'sscheduled_actions(title+trigger_schedule_id).titleisnullwhen a run cannot be mapped to a scheduled task (e.g. non-scheduled runs), and is not present in retrieve mode (runIdprovided) — mirroring the schema's existing mode-scoped field notes.Links
🤖 Generated with Claude Code
Summary by CodeRabbit
titlefield when available, helping identify the originating scheduled task in run listings.null.Summary by cubic
Adds a nullable
titlefield toTaskRunResponseso run listings can show the originating scheduled task’s title. Improves readability ofGET /api/tasks/runsby naming scheduled runs; the field is only in list mode, may benullif unresolved, and is omitted in retrieve mode.Written for commit 83faa16. Summary will update on new commits.